package org.tinygroup.datasource.jmeter;

import org.apache.commons.dbcp2.BasicDataSource;
import org.tinygroup.dbcluster.algorithm.SingleKeyModuloDatabaseShardingAlgorithm;
import org.tinygroup.dbcluster.algorithm.table.NoneTableShardingAlgorithm;
import org.tinygroup.dbcluster.base.*;
import org.tinygroup.dbcluster.jdbc.DbclusterDataSource;
import org.tinygroup.dbcluster.strategy.database.DatabaseShardingStrategy;
import org.tinygroup.dbcluster.strategy.table.TableShardingStrategy;
import performance.ResourceLoadUtil;
import performance.jmeter.TpsQueryTest;

import javax.sql.DataSource;
import java.io.IOException;
import java.io.InputStream;
import java.sql.*;
import java.util.*;

/**
 * 多客户端多线程测数据库性能测试 <br/>
 * 不同库同表
 *
 * @author wangwy
 *
 */
public class DbclusterDsQuery extends TpsQueryTest {

	protected Connection getConnection() throws SQLException {
		return DataSourceFactory.getDbclusterDataSource().getConnection();
	}


	@Override
	public void tearDown() {
		DataSourceFactory.closeDataSources();
	}
}
